#pragma once
#include "stdafx.h"
#include "../Utilities/utilities.h" // if you use STL, please include this line AFTER all other include
#include "Vertex.h"


class Triangle
{
private:
	GLuint vboId;
	GLuint textureId;
	
public:
	//Trong tam
	Vertex verticesData[3];
	Vector3 position;
	Vector3 rotateAngle;
	Vector3 scaleFactor;
	float rotY;
	Triangle(void);
	~Triangle(void);
	
	void Rotate(float angle,int x,int y,int z);
	void Move(float offset);

	void Update();
	void Draw(ESContext *esContext);
	void DrawWithTexture(ESContext *esContext);

	void Init();
	
};
